import request from '@/utils/request.js'
//事件分类列表查询
export const articleCategoryListService = () =>{
    //在pinia中的响应数据，都不需要.value
    return request.get('/category')
}
//事件分类列表查询
export const articleCategoryList1Service = (params) =>{
    //在pinia中的响应数据，都不需要.value
    return request.get('/category/list1',{params:params})
}
//添加
export const articleCategoryAddService = (categoryData)=>{
    return request.post('/category',categoryData)
}
//修改
export const articleCategoryUpdateService = (categoryData)=>{
    return request.put('/category',categoryData)
}
//删除
export const articleCategoryDeleteService = (id)=>{
    return request.delete('/category?id='+id)
}
//事件列表查询
export const articleListService = (params)=>{
    return request.get('/article',{params:params})
}
//事件添加
export const articleAddService = (articleData)=>{
    return request.post('/article',articleData)
}
//事件删除
export const articleDeleteService = (id)=>{
    return request.delete('/article?id='+id)
}
//事件修改
export const articleUpdateService = (articleData)=>{
    return request.put('/article',articleData)
}